import service from '@/utils/request'

// @Tags QmServer
// @Summary 创建qmServer表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmServer true "创建qmServer表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /qmServer/createQmServer [post]
export const createQmServer = (data) => {
  return service({
    url: '/qmServer/createQmServer',
    method: 'post',
    data
  })
}

// @Tags QmServer
// @Summary 删除qmServer表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmServer true "删除qmServer表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /qmServer/deleteQmServer [delete]
export const deleteQmServer = (params) => {
  return service({
    url: '/qmServer/deleteQmServer',
    method: 'delete',
    params
  })
}

// @Tags QmServer
// @Summary 批量删除qmServer表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除qmServer表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /qmServer/deleteQmServer [delete]
export const deleteQmServerByIds = (params) => {
  return service({
    url: '/qmServer/deleteQmServerByIds',
    method: 'delete',
    params
  })
}

// @Tags QmServer
// @Summary 更新qmServer表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmServer true "更新qmServer表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /qmServer/updateQmServer [put]
export const updateQmServer = (data) => {
  return service({
    url: '/qmServer/updateQmServer',
    method: 'put',
    data
  })
}

// @Tags QmServer
// @Summary 用id查询qmServer表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.QmServer true "用id查询qmServer表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /qmServer/findQmServer [get]
export const findQmServer = (params) => {
  return service({
    url: '/qmServer/findQmServer',
    method: 'get',
    params
  })
}

// @Tags QmServer
// @Summary 分页获取qmServer表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取qmServer表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /qmServer/getQmServerList [get]
export const getQmServerList = (params) => {
  return service({
    url: '/qmServer/getQmServerList',
    method: 'get',
    params
  })
}
